package com.zhz.demo;

import redis.clients.jedis.Jedis;
import redis.clients.jedis.JedisPool;

public class JedisLockDemo {
    
    public static void main(String[] args) {
        
        JedisPool jedisPool = new JedisPool("192.168.23.129", 6379);
        
        Jedis jedis = jedisPool.getResource();
        
        String set = jedis.set("123", "123", "NX", "PX", 30000);
        
        System.out.println(set);
    }
}
